package cn.jobstart.search;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import cn.jobstart.pubInter.BaseSearch;
import cn.jobstart.model.CompanyContact;
import java.util.Date;
import java.util.List;
import java.math.BigDecimal;
import lombok.Data;
/**
*   @author sunke
*   @Date 2023-09-22 22:03:51
*   @description CompanyContactSearch      企业联系人
*/


@Data
@ApiModel("企业联系人CompanyContactSearch")
public abstract class CompanyContactSearch<Sub extends CompanyContactSearch<Sub>> extends BaseSearch {
    @ApiModelProperty(value = "主键")
    private List idIn;
    @ApiModelProperty(value = "大于排序")
    private Integer sortNumGreater;
    @ApiModelProperty(value = "小于排序")
    private Integer sortNumLess;
    @ApiModelProperty(value = "是否显示 1:是:Y,0:否:N")
    private List showFlagIn;
    @ApiModelProperty(value = "是否删除 1:删除:Y,0:正常:N")
    private Integer delFlagEq=0;
    @ApiModelProperty(value = "版本")
    private Integer versionEq;
    @ApiModelProperty(value = "公司ID")
    private String companyIdEq;
    @ApiModelProperty(value = "联系电话")
    private String phoneLike;
    @ApiModelProperty(value = "联系人")
    private String linkmanLike;
    @ApiModelProperty(value = "备注")
    private String remarkLike;
    @ApiModelProperty(value = "电子邮箱")
    private String emailLike;
    @ApiModelProperty(value = "微信")
    private String wxLike;

    public CompanyContactSearch() {
        setDelFlagEq(0);
    }



    /**
    * 返回子类Sub
    * @return
    */
    public abstract Sub getSubThis();

    @Override
    public String createTimeFiled() {
        return CompanyContact.CREATE_TIME;
    }
    @Override
    public String updateTimeFiled() {
        return CompanyContact.UPDATE_TIME;
    }
    @Override
    public String  setDefaultField() {
        return CompanyContact.CREATE_TIME;
    }
    @Override
    public String pkField() {
        return CompanyContact.ID;
    }

    @Override
    public String  toString() {
        return "CompanyContactSearch{}"+super.toString();
    }
    public Sub setIdIn(List idIn){
        this.idIn = idIn;
        setInField(CompanyContact.ID, idIn);
        return getSubThis();
    }
    public Sub setSortNumGreater(Integer sortNumGreater){
        this.sortNumGreater = sortNumGreater;
        setGreaterField(CompanyContact.SORT_NUM, sortNumGreater);
        return getSubThis();
    }
    public Sub setSortNumLess(Integer sortNumLess){
        this.sortNumLess = sortNumLess;
        setLessField(CompanyContact.SORT_NUM, sortNumLess);
        return getSubThis();
    }
    public Sub setShowFlagIn(List showFlagIn){
        this.showFlagIn = showFlagIn;
        setInField(CompanyContact.SHOW_FLAG, showFlagIn);
        return getSubThis();
    }
    public Sub setDelFlagEq(Integer delFlagEq){
        this.delFlagEq = delFlagEq;
        setEqualField(CompanyContact.DEL_FLAG, delFlagEq);
        return getSubThis();
    }
    public Sub setVersionEq(Integer versionEq){
        this.versionEq = versionEq;
        setEqualField(CompanyContact.VERSION, versionEq);
        return getSubThis();
    }
    public Sub setCompanyIdEq(String companyIdEq){
        this.companyIdEq = companyIdEq;
        setEqualField(CompanyContact.COMPANY_ID, companyIdEq);
        return getSubThis();
    }
    public Sub setPhoneLike(String phoneLike){
        this.phoneLike = phoneLike;
        setLikeField(CompanyContact.PHONE, phoneLike);
        return getSubThis();
    }
    public Sub setLinkmanLike(String linkmanLike){
        this.linkmanLike = linkmanLike;
        setLikeField(CompanyContact.LINKMAN, linkmanLike);
        return getSubThis();
    }
    public Sub setRemarkLike(String remarkLike){
        this.remarkLike = remarkLike;
        setLikeField(CompanyContact.REMARK, remarkLike);
        return getSubThis();
    }
    public Sub setEmailLike(String emailLike){
        this.emailLike = emailLike;
        setLikeField(CompanyContact.EMAIL, emailLike);
        return getSubThis();
    }
    public Sub setWxLike(String wxLike){
        this.wxLike = wxLike;
        setLikeField(CompanyContact.WX, wxLike);
        return getSubThis();
    }
}